package com.group.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.group.dao.GeneralBeanDao;
import com.group.model.News;

@Service
public class NewsService {
	@Autowired
	GeneralBeanDao beanDao;

	//@Cacheable("queryNewsById")
	public News queryById(Long newsId) {
		News news = beanDao.quickQueryOne(News.class, "id", newsId);

		return news;

	}

}
